Skip to content

Conversation

MadhavBahl
Copy link
Contributor

Added component which resolves issue #14

The issue can be closed now

@vercel
Copy link

vercel bot commented Jun 26, 2018

This pull request is automatically deployed with Now.

To access deployments, click Details below or on the icon next to each push.

import React from 'react';

const CheckoutButton = () => (
<React.Fragment>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you take ({ children, ...otherProps }) and instead of hard coded text put children and spread otherProps at root component (a)? This way we can bind event listeners, classNames etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, will do this tonight :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants